package org.zhuxian.cn.common;


import lombok.Getter;

@Getter
public enum ErrorCode {
    SUCCESS(0, "ok"),
    PARAMS_ERROR(40000, "请求参数错误"),
    NULL_ERROR(40001, "请求参数为空"),
    NO_LOGIN(40100, "未登录"),
    NO_AUTH(40101, "暂无权限访问"),
    SYSTEM_ERROR(50000, "系统内部异常");

    //返回码
    private final int code;
    //操作响应信息
    private final String message;

    //构造函数
    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
